#!/usr/bin/env bash
#create by Arnold.zhu
echo "Please input application num"
read num

echo "Waiting..."

if [ "$num" = 1 ]; then
  nohup java -jar -Dserver.port=8080 -Dlog.root=/var/log/springboot/springboot-redis/app1  ./app1/hgvip-springboot-redis.jar >/dev/null 2>&1 &
else
  nohup java -jar -Dserver.port=8082 -Dlog.root=/var/log/springboot/springboot-redis/app2  ./app2/hgvip-springboot-redis.jar >/dev/null 2>&1 &
fi